{include file="public/header" /}
<body>
<nav class="breadcrumb"><i class="Hui-iconfont">&#xe67f;</i> 首页
    <span class="c-gray en">&gt;</span> 资产管理
    <span class="c-gray en">&gt;</span> 资金记录
    <a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href="/money/recordPay" title="刷新" ><i class="Hui-iconfont">&#xe68f;</i></a>
</nav>
<div class="page-container">
    <form  method="get" action="">
        <div class="text-c">
<!--            日期范围：-->
<!--            <input type="text" onfocus="WdatePicker()" value="{:input('get.start')}" name="start" id="datemin" class="input-text Wdate" style="width:120px;" autocomplete="off">-->
<!--             - -->
<!--            <input type="text" onfocus="WdatePicker()" value="{:input('get.end')}" name="end" id="datemax" class="input-text Wdate" style="width:120px;" autocomplete="off">-->
            <input type="text" class="input-text" style="width:250px" placeholder="UID/账号" value="{:input('word')}" name="word">
            <span class="select-box" style="width: 200px">
               <select name="type" class="select">
                    <option value="-1">充值类型</option>
                    <option value="1" {if isset($_GET['type']) && $_GET['type'] == 1}selected{/if}>MT</option>
                       <option value="2" {if isset($_GET['type']) && $_GET['type'] == 2}selected{/if}>兑换券</option>
                </select>
            </select>
            </span>
            <span class="select-box" style="width: 200px">
               <select name="status" class="select">
                    <option value="0">状态</option>
                    <option value="1" {if isset($_GET['status']) && $_GET['status'] == 1}selected{/if}>审批中</option>
                       <option value="2" {if isset($_GET['status']) && $_GET['status'] == 2}selected{/if}>审批成功</option>
                       <option value="3" {if isset($_GET['status']) && $_GET['status'] == 3}selected{/if}> 审批拒绝</option>
                </select>
            </select>
            </span>
            <button type="submit" class="btn btn-success">搜索</button>
        </div>
    </form>

    <div class="cl pd-5 bg-1 bk-gray mt-20">
        <span class="r">共有数据：<strong>{$list->total()}</strong> 条</span> </div>
    <table class="table table-border table-bordered table-hover table-bg">
        <thead>
            <tr>
                <th scope="col" colspan="9">账户列表</th>
            </tr>
            <tr class="text-c">
                <th width="30">ID</th>
                <th width="120">用户</th>
                <th width="50">类型</th>
                <th width="150">数量</th>
                <th width="150">汇率</th>
                <th width="100">支付凭证</th>
                <th width="100">状态</th>
                <th width="100">时间</th>
                <th width="100">操作</th>
            </tr>
        </thead>
        <tbody>
            {foreach $list as $v}
            <tr class="text-c">
                <td>{$v.id}</td>
                <td>{$v.uid}-{$v.username}-{$v.level}</td>
                <td>
                    {switch name="$v.type"}
                    {case value="1"}MT{/case}
                    {case value="2"}兑换券{/case}
                    {default /}--
                    {/switch}</td>
                <td>用<font color="red">{$v.usdt}USDT</font>申请兑换<font color="orange">{$v.num}</font>到账 <font color="green">{$v.to_num}</font></td>
                <td>费率<font color="red">{$v.rate}</font>折扣<font color="orange">{$v.discount*100}%</font></td>
                <td><span   class="btn btn-link"  href="javascript:;" onclick="layopen('支付凭证','{:url('user/imageshow',['src'=>'/'.$v.payimg])}')">支付凭证</span></td>
                <td>
                    {switch name="$v.status"}
                    {case value="1"}审批中{/case}
                    {case value="2"}审批成功{/case}
                    {case value="3"}审批失败{/case}
                    {default /}--
                    {/switch}</td>
                <td>{$v.time}</td>
                <td>  <span class="btn btn-link" title="审批|详情" href="javascript:;" onclick="layopen('审批|详情','{:url('record_pay_sp',['id'=>$v.id])}',800,800)">详情</span></td>
            </tr>

            {/foreach}
        </tbody>
    </table>
    <div class="page">
        {$list->render()|raw}
    </div>
</div>

{include file="public/footer" /}